<template>
  <button class="hm-button" @click="fn">通用按钮</button>
</template>

<script>
export default {
  methods: {
    fn() {
      // console.log("click");
      alert("click");
    }
  }
};
</script>

<style>
.hm-button {
  width: 80px;
  height: 40px;
  background-color: skyblue;
  color: white;
  border: 2px solid #000;
  vertical-align: middle;
}
</style>